projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cbaa56
)
switch: Initialize accessible state
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 27 Jul 2020 23:57:13 +0000
(19:57 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 28 Jul 2020 01:18:10 +0000
(21:18 -0400)
The checked state defaults to undefined, so we need
to set it to the desired false state.
gtk/gtkswitch.c
patch
|
blob
|
history
diff --git
a/gtk/gtkswitch.c
b/gtk/gtkswitch.c
index f4cc9f36152922822aa20cf10ce9db4b705fa06b..a178672595f3f9612042e0702dfe49d975cf2f7b 100644
(file)
--- a/
gtk/gtkswitch.c
+++ b/
gtk/gtkswitch.c
@@
-659,6
+659,10
@@
gtk_switch_init (GtkSwitch *self)
self->slider = gtk_gizmo_new ("slider", NULL, NULL, NULL, NULL, NULL, NULL);
gtk_widget_set_parent (self->slider, GTK_WIDGET (self));
+
+ gtk_accessible_update_state (GTK_ACCESSIBLE (self),
+ GTK_ACCESSIBLE_STATE_CHECKED, FALSE,
+ -1);
}
/**